
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h3>
    ---v-if   v-else-if  v-else判断语句 <br>
     --判断语句中间不能加其他标签,不然解析不出来
  </h3>
  <hr>
  <script src="../js/vue.js"></script>
  <div id="root">
    <p v-if="gender === 1">性别:男</p>
    <p v-else>性别:女</p>
    <hr>
    <p v-if="score >=90">牛逼啊</p>
    <p v-else-if="score >=70">厉害啊</p>
    <p v-else-if="score >=60">你在搞什么飞机</p>
    <p v-else>6666</p>
  </div>
  <script>
    new Vue({
      el:'#root',
      data:{
        gender: 2,
        score : 95
      }
    })
  </script>
</body>
</html>